<?php
/**
 * Create by chang
 * Date 2020/1/7
 * Time 11:18
 * 广告
 */

namespace app\api\controller\v1;

use app\common\controller\Api;
use app\common\service\BannerService;

class Banner extends Api {
	protected $noNeedLogin = ['*'];
	
	/**
	 * 列表
	 */
	public function index($ids){
		$positions = explode('_', $ids);
		!$positions && $this->error('参数错误');
		
		$obj = new BannerService();
		$list = $obj->getBannerByPositions($positions);
		$this->success('', $list);
	}
}
